package org.icnmasjid.member.webapp.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.icnmasjid.member.service.RegistrationManager;
import org.springframework.web.servlet.ModelAndView;

public class ReportController extends BaseFormController {

	private RegistrationManager registrationManager;

	protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
		ModelAndView mav = new ModelAndView("ajax_count");
		mav.addObject("countMap", getRegistrationManager().getFamilyCheckedInCount());
		mav.addObject("amtMap", getRegistrationManager().getAmtCollected());
		return mav;
	}

	public RegistrationManager getRegistrationManager() {
		return registrationManager;
	}

	public void setRegistrationManager(RegistrationManager registrationManager) {
		this.registrationManager = registrationManager;
	}
}
